/**
 * Yolema.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */
package org.grayrabbit.pay.core.service.transaction;

import java.util.List;
import org.grayrabbit.pay.core.model.pages.PageList;
import org.grayrabbit.pay.core.model.entity.transaction.TradeRecord;

/**
 * 
 * 
 * @author liyd
 * @version $Id: TradeRecordService.java, v 0.1 Thu May 31 14:50:37 CST 2012 liyd Exp $
 */
public interface TradeRecordService {

    /**
     * 查询业务对象列表
     * 
     * @param tradeRecord
     * @return
     */
    public PageList<TradeRecord> queryPageList(TradeRecord tradeRecord);

    /**
     * 根据Id得到实体对象
     * 
     * @param id
     * @return
     */
    public TradeRecord getById(Long id);

    public List<TradeRecord> getBySystemId(Long systemId);

    /**
     * 根据id批量删除
     * 
     * @param idArray
     */
    public void deleteBatchById(Long[] idArray);

    /**
     * 添加一个对象
     * 
     * @param tradeRecord
     */
    public void insert(TradeRecord tradeRecord);

    /**
     * 更新一个对象
     * 
     * @param tradeRecord
     * @return
     */
    public int update(TradeRecord tradeRecord);

    /**
     * 删除一个对象
     * 
     * @param tradeRecord
     */
    public void delete(TradeRecord tradeRecord);
    
    
    /**
     * 查询交易变更记录
     * 
     * @param tradeRecord
     * @return
     */
    public List<TradeRecord> queryList(TradeRecord tradeRecord);

}
